<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: chi::DefaultModuleCache Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structchi_1_1DefaultModuleCache.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structchi_1_1DefaultModuleCache-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">chi::DefaultModuleCache Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for chi::DefaultModuleCache:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache__inherit__graph.svg" width="178" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for chi::DefaultModuleCache:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache__coll__graph.svg" width="178" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a423679c492fd75f3a9d77b9a624f2e56"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1DefaultModuleCache.html#a423679c492fd75f3a9d77b9a624f2e56">DefaultModuleCache</a> (<a class="el" href="structchi_1_1Context.html">Context</a> &amp;ctx)</td></tr>
<tr class="memdesc:a423679c492fd75f3a9d77b9a624f2e56"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constrcutor.  <a href="#a423679c492fd75f3a9d77b9a624f2e56">More...</a><br /></td></tr>
<tr class="separator:a423679c492fd75f3a9d77b9a624f2e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b638a834c434c103ebc5c0d3a70d021"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structchi_1_1Result.html">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1DefaultModuleCache.html#a5b638a834c434c103ebc5c0d3a70d021">cacheModule</a> (const boost::filesystem::path &amp;moduleName, llvm::Module &amp;compiledModule, std::time_t timeAtFileRead) override</td></tr>
<tr class="memdesc:a5b638a834c434c103ebc5c0d3a70d021"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cache a module.  <a href="#a5b638a834c434c103ebc5c0d3a70d021">More...</a><br /></td></tr>
<tr class="separator:a5b638a834c434c103ebc5c0d3a70d021"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6088e4753cdc1233ae29f6513999e59d"><td class="memItemLeft" align="right" valign="top">boost::filesystem::path&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1DefaultModuleCache.html#a6088e4753cdc1233ae29f6513999e59d">cachePathForModule</a> (const boost::filesystem::path &amp;moduleName) const</td></tr>
<tr class="memdesc:a6088e4753cdc1233ae29f6513999e59d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the cache name for a module.  <a href="#a6088e4753cdc1233ae29f6513999e59d">More...</a><br /></td></tr>
<tr class="separator:a6088e4753cdc1233ae29f6513999e59d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a550d8acf4e89a39d9399c0f512ac04f3"><td class="memItemLeft" align="right" valign="top">std::time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1DefaultModuleCache.html#a550d8acf4e89a39d9399c0f512ac04f3">cacheUpdateTime</a> (const boost::filesystem::path &amp;moduleName) const override</td></tr>
<tr class="memdesc:a550d8acf4e89a39d9399c0f512ac04f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the time that a cache was updated.  <a href="#a550d8acf4e89a39d9399c0f512ac04f3">More...</a><br /></td></tr>
<tr class="separator:a550d8acf4e89a39d9399c0f512ac04f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00529c4dd7aa04ffdf43689abd24f183"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structchi_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#a00529c4dd7aa04ffdf43689abd24f183">context</a> () const</td></tr>
<tr class="memdesc:a00529c4dd7aa04ffdf43689abd24f183"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the context this cache is bound to.  <a href="#a00529c4dd7aa04ffdf43689abd24f183">More...</a><br /></td></tr>
<tr class="separator:a00529c4dd7aa04ffdf43689abd24f183"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b4f579458e59863f464f0b28e22ac10"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1DefaultModuleCache.html#a3b4f579458e59863f464f0b28e22ac10">invalidateCache</a> (const boost::filesystem::path &amp;moduleName) override</td></tr>
<tr class="separator:a3b4f579458e59863f464f0b28e22ac10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ed6e8d3f71ca9e215d3564d5beb46c9"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; llvm::Module &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1DefaultModuleCache.html#a0ed6e8d3f71ca9e215d3564d5beb46c9">retrieveFromCache</a> (const boost::filesystem::path &amp;moduleName, std::time_t atLeastThisNew) override</td></tr>
<tr class="memdesc:a0ed6e8d3f71ca9e215d3564d5beb46c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a module from the cache.  <a href="#a0ed6e8d3f71ca9e215d3564d5beb46c9">More...</a><br /></td></tr>
<tr class="separator:a0ed6e8d3f71ca9e215d3564d5beb46c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8hpp_source.html#l00010">10</a> of file <a class="el" href="DefaultModuleCache_8hpp_source.html">DefaultModuleCache.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a423679c492fd75f3a9d77b9a624f2e56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a423679c492fd75f3a9d77b9a624f2e56">&#9670;&nbsp;</a></span>DefaultModuleCache()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">chi::DefaultModuleCache::DefaultModuleCache </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structchi_1_1Context.html">chi::Context</a> &amp;&#160;</td>
          <td class="paramname"><em>ctx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constrcutor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>The context to cache for </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8cpp_source.html#l00026">26</a> of file <a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5b638a834c434c103ebc5c0d3a70d021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b638a834c434c103ebc5c0d3a70d021">&#9670;&nbsp;</a></span>cacheModule()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structchi_1_1Result.html">Result</a> chi::DefaultModuleCache::cacheModule </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">llvm::Module &amp;&#160;</td>
          <td class="paramname"><em>compiledModule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::time_t&#160;</td>
          <td class="paramname"><em>timeAtFileRead</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cache a module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The name of the module to cache </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>!moduleName.empty()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">compiledModule</td><td>The IR that's been compiled from this module </td></tr>
    <tr><td class="paramname">timeAtFileRead</td><td>The time to store as the cache time. Should be the time the module was read from disk </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="structchi_1_1Result.html" title="The result object, used for identifiying errors with good diagnostics. ">Result</a> </dd></dl>

<p>Implements <a class="el" href="structchi_1_1ModuleCache.html#acf93dc80687d0d13ebba4d3f5d215620">chi::ModuleCache</a>.</p>

<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8cpp_source.html#l00028">28</a> of file <a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a>.</p>

<p class="reference">References <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">cachePathForModule()</a>.</p>
<div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a5b638a834c434c103ebc5c0d3a70d021_cgraph.svg" width="630" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="a6088e4753cdc1233ae29f6513999e59d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6088e4753cdc1233ae29f6513999e59d">&#9670;&nbsp;</a></span>cachePathForModule()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boost::filesystem::path chi::DefaultModuleCache::cachePathForModule </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the cache name for a module. </p>
<p>Basically <code><a class="el" href="structchi_1_1ModuleCache.html#a00529c4dd7aa04ffdf43689abd24f183" title="Get the context this cache is bound to. ">context()</a>.workspacePath() / moduleName + ".bc"</code> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The name of the module to get a cache path for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The path </dd></dl>

<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">70</a> of file <a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a>.</p>

<p class="reference">References <a class="el" href="ModuleCache_8hpp_source.html#l00059">chi::ModuleCache::context()</a>, and <a class="el" href="Context_8hpp_source.html#l00138">chi::Context::workspacePath()</a>.</p>

<p class="reference">Referenced by <a class="el" href="DefaultModuleCache_8cpp_source.html#l00028">cacheModule()</a>, <a class="el" href="DefaultModuleCache_8cpp_source.html#l00083">cacheUpdateTime()</a>, <a class="el" href="DefaultModuleCache_8cpp_source.html#l00075">invalidateCache()</a>, and <a class="el" href="DefaultModuleCache_8cpp_source.html#l00087">retrieveFromCache()</a>.</p>
<div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a6088e4753cdc1233ae29f6513999e59d_cgraph.svg" width="415" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a6088e4753cdc1233ae29f6513999e59d_icgraph.svg" width="607" height="235"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="a550d8acf4e89a39d9399c0f512ac04f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a550d8acf4e89a39d9399c0f512ac04f3">&#9670;&nbsp;</a></span>cacheUpdateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::time_t chi::DefaultModuleCache::cacheUpdateTime </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the time that a cache was updated. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The module to get the last update time for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The time it was updated, or 0 if there is no cache </dd></dl>

<p>Implements <a class="el" href="structchi_1_1ModuleCache.html#aa46e60b79154f29101838c25d0d52ff8">chi::ModuleCache</a>.</p>

<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8cpp_source.html#l00083">83</a> of file <a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a>.</p>

<p class="reference">References <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">cachePathForModule()</a>.</p>

<p class="reference">Referenced by <a class="el" href="DefaultModuleCache_8cpp_source.html#l00087">retrieveFromCache()</a>.</p>
<div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a550d8acf4e89a39d9399c0f512ac04f3_cgraph.svg" width="630" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a550d8acf4e89a39d9399c0f512ac04f3_icgraph.svg" width="392" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="a00529c4dd7aa04ffdf43689abd24f183"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00529c4dd7aa04ffdf43689abd24f183">&#9670;&nbsp;</a></span>context()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structchi_1_1Context.html">Context</a>&amp; chi::ModuleCache::context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the context this cache is bound to. </p>
<dl class="section return"><dt>Returns</dt><dd>the <code><a class="el" href="structchi_1_1Context.html" title="The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...">Context</a></code> </dd></dl>

<p class="definition">Definition at line <a class="el" href="ModuleCache_8hpp_source.html#l00059">59</a> of file <a class="el" href="ModuleCache_8hpp_source.html">ModuleCache.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">cachePathForModule()</a>, and <a class="el" href="DefaultModuleCache_8cpp_source.html#l00087">retrieveFromCache()</a>.</p>
<div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache_a00529c4dd7aa04ffdf43689abd24f183_icgraph.svg" width="100%" height="504"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a3b4f579458e59863f464f0b28e22ac10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b4f579458e59863f464f0b28e22ac10">&#9670;&nbsp;</a></span>invalidateCache()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void chi::DefaultModuleCache::invalidateCache </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p></p>

<p>Implements <a class="el" href="structchi_1_1ModuleCache.html#a1da914cd290102492f3b588af705d02c">chi::ModuleCache</a>.</p>

<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8cpp_source.html#l00075">75</a> of file <a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a>.</p>

<p class="reference">References <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">cachePathForModule()</a>.</p>
<div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a3b4f579458e59863f464f0b28e22ac10_cgraph.svg" width="630" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="a0ed6e8d3f71ca9e215d3564d5beb46c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ed6e8d3f71ca9e215d3564d5beb46c9">&#9670;&nbsp;</a></span>retrieveFromCache()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::unique_ptr&lt; llvm::Module &gt; chi::DefaultModuleCache::retrieveFromCache </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::time_t&#160;</td>
          <td class="paramname"><em>atLeastThisNew</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve a module from the cache. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The name of the module to retrieve </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>!moduleName.empty()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">atLeastThisNew</td><td>Make sure the cache is at least as new as this </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A llvm::Module, or nullptr if no suitable cache was found </dd></dl>

<p>Implements <a class="el" href="structchi_1_1ModuleCache.html#a052da4f3f833549b36234932268d5e2c">chi::ModuleCache</a>.</p>

<p class="definition">Definition at line <a class="el" href="DefaultModuleCache_8cpp_source.html#l00087">87</a> of file <a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a>.</p>

<p class="reference">References <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">cachePathForModule()</a>, <a class="el" href="DefaultModuleCache_8cpp_source.html#l00083">cacheUpdateTime()</a>, <a class="el" href="ModuleCache_8hpp_source.html#l00059">chi::ModuleCache::context()</a>, and <a class="el" href="BitcodeParser_8cpp_source.html#l00056">chi::parseBitcodeFile()</a>.</p>
<div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1DefaultModuleCache_a0ed6e8d3f71ca9e215d3564d5beb46c9_cgraph.svg" width="100%" height="431"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>lib/core/include/chi/<a class="el" href="DefaultModuleCache_8hpp_source.html">DefaultModuleCache.hpp</a></li>
<li>lib/core/src/<a class="el" href="DefaultModuleCache_8cpp_source.html">DefaultModuleCache.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacechi.html">chi</a></li><li class="navelem"><a class="el" href="structchi_1_1DefaultModuleCache.html">DefaultModuleCache</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
